<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-3.1.1.js" ></script>
<link href="css/signin.css" rel="stylesheet">
<style type="text/css">
	#yzm{
		width:60%;
		height:60px;
		float: right;
	}
	#img{
		width:40%;
		float:right;
	}
</style>
 <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
	<script type="text/javascript">
	<%session.invalidate();%>
	$("p").html("");
		function changeCode(){
			document.getElementById("img").src="code.do?x="+Math.random();
		}
	</script>
</head>
<body>
	<!-- ${pageContext.request.contextPath}/ -->
		<div class="container">
	      	<form class="form-signin" action="login.do" method="post">
		        <h2 class="form-signin-heading text-center">登陆后台</h2>
		        <div class="input-group">
				  <span class="glyphicon glyphicon-user input-group-addon" aria-hidden="true"></span>
				  <input name="name" type="text" id="inputEmail" class="form-control" placeholder="请输入账号" required autofocus>
				</div>
		        <div class="input-group">
				  <span class="glyphicon glyphicon-sunglasses input-group-addon"></span>
				  <input name="password" type="password" id="inputPassword" class="form-control" placeholder="请输入密码" required>
				</div>
				<div class="input-group">
				  <input name="code" type="text" id="yzm" class="form-control" placeholder="请输入验证码" >
				<img id="img" src="code.do" title="点击刷新验证码" onclick="changeCode()">
				</div>
		       	<p style="color:red">${msg}</p>
		       	<input class="btn btn-lg btn-primary btn-block" type="submit" value="登陆"></button>
	      	</form>
    	</div>
</body>
</html>